using System.ComponentModel.DataAnnotations;

namespace Universal.Application.Contracts.Dto.ArticleCategory;

/// <summary>
/// 更新文章分类DTO
/// </summary>
public class UpdateArticleCategoryDto
{
    public Guid Id { get; set; }
    
    [Required(ErrorMessage = "分类名称不能为空")]
    [StringLength(50, ErrorMessage = "分类名称长度不能超过50个字符")]
    public string ArticleCategoryName { get; set; } = string.Empty;
    
    [StringLength(200, ErrorMessage = "分类描述长度不能超过200个字符")]
    public string? Description { get; set; }
    
    public int Sort { get; set; } = 0;
    
    public Guid? ParentId { get; set; }
    
    public bool IsActive { get; set; } = true;
}